package com.qf.jie.entity.bo;

public class CartAndCommodityBo {
    private Integer id;
    private Integer user_id;
    private Integer commodity_id;
    private String name;    // 商品名
    private Double price;

    public CartAndCommodityBo(){}
    public CartAndCommodityBo(Integer id, Integer user_id, Integer commodity_id, String name, Double price) {
        this.id = id;
        this.user_id = user_id;
        this.commodity_id = commodity_id;
        this.name = name;
        this.price = price;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUser_id() {
        return user_id;
    }

    public void setUser_id(Integer user_id) {
        this.user_id = user_id;
    }

    public Integer getCommodity_id() {
        return commodity_id;
    }

    public void setCommodity_id(Integer commodity_id) {
        this.commodity_id = commodity_id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    @Override
    public String toString() {
        return "CartAndCommodityBo{" +
                "id=" + id +
                ", user_id=" + user_id +
                ", commodity_id=" + commodity_id +
                ", name='" + name + '\'' +
                ", price=" + price +
                '}';
    }
}
